package com.mofeng.myshop.domain.vo;

import lombok.*;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginStateVo implements Serializable {
    private int count;//登录次数
    private String ip;//登录Ip
    private String username;//登录用户

    public LoginStateVo(String userIp, String userName) {
        this.ip = userIp.replace(".", "-");
        this.username = userName;
    }
}
